<template>
  <div>
    <the-header />
    <aside-menu />
    <div class="content-box" :class="{ 'content-collapse': collapse }">
      <div class="content">
        <router-view />
      </div>
    </div>
  </div>
</template>

<script>
import TheHeader from '../components/TheHeader.vue'
import AsideMenu from '../components/AsideMenu.vue'
import _ctrEvent from '../assets/js/ctrEvent.js'
export default {
  components: {
    TheHeader,
    AsideMenu
  },
  data() {
    return {
      collapse: false
    }
  },
  created() {
    _ctrEvent.$on('collapse', data => {
      this.collapse = data
    })
  }
}
</script>
